import type { CommonPage, CommonResult } from '@/models/request'
import type { Subject, SubjectPageDto } from '@/models/subject'
import request from '@/utils/request'
export function fetchListAll() {
  return request<CommonResult<Subject[]>>({
    url: '/subject/listAll',
    method: 'get',
  })
}

export function fetchList(params: SubjectPageDto) {
  return request<CommonPage<Subject>>({
    url: '/subject/list',
    method: 'get',
    params: params,
  })
}
